<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<title>Notice Write</title>
</head>

<script type="text/javascript">
/* 
function chkSpace(str) {     

	var len = str.length;
		for (var i = 0; i < len ; i++) {
			if (str.charAt(i) == " ") return 0;
			else continue;
		}
	return 1;
}
 */

function send_check(n)
{
	var f = document.f;
	if (f.b_subject.value == '')
	{
		alert('제목을 입력하세요');
		f.subject.focus();
		return false;
	}
	
	f.submit();
	
}



</script>


<body>
<form action="board_notice_write.do" name="f" method="post" enctype="multipart/form-data">	
	<input type="hidden" name="menu_no" value="${param.menu_no }">
	<input type="hidden" name="cate_no" value="${param.cate_no }">
	<input type="hidden" name="title_no" value="${param.title_no }"> 

		<!-- 게시판이미지 -->
		<h2>공지사항</h2>
		
		
		<!-- writeForm -->
		<table border="0" cellpadding="0" cellspacing="0" width="600">
		
		<!-- <tr>
			<td>
			<select name="cate_no">
			   <option value="5">전체게시판</option>
			   <option value="6">자유게시판</option>
			   <option value="7">지역게시판</option>
			   <option value="8">그룹게시판</option>
			   <option value="9" selected="selected">공지사항</option>
			</select>
			
			</td>
		</tr> -->
		
		
		<tr height="30">
			<td>제목</td>
			<td colspan="2">
				<input name="b_subject" id="b_subject" type="text" size="75">
			</td>
		</tr>
		
		<tr height="30">
			<td>첨부파일</td>
			<td>
				<input name="file" type="file">
			</td>
			
		</tr>
		
		<tr height="30">
			<td>내용</td>
			<td>
				<textarea name="b_content" rows="9" cols="65"></textarea>
			</td>
		</tr>
	</table>
	
	
	<!-- 버튼 -->
	<table width="600">
		<tr align="center">
			<td align="center" style="padding-top: 5px">
			<input type="button" class="pink_button" value="등록" onClick="send_check(this.form)" style="cursor: pointer;">
			<input type="button" class="pink_button" value="취소" onClick="JavaScript:location.href='board_list.do'" style="cursor:pointer;">
			</td>
		</tr>
	</table>
</form>
</body>
</html>